home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
fam_1_1
/
part01
/
FAMgrep1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-16
|
320b
|
23 lines
/*
* FAMgrep1.c
* Sample Simple FAMgrep code.
* returns true if last char of name matches *p
*/
#include "exec/types.h"
#include "FAM.h"
#include "string.h"
long MyGrepFunc(struct ScanListNode * node, char * p)
{
char * q;
q = node->node.ln_Name;
q = q + strlen(q) - 1;
return *q == *p;
}